package com.cskaoyan.mapper;

import com.cskaoyan.vo.User;
import com.cskaoyan.vo.UserDetail;
import org.apache.ibatis.annotations.Param;


/**
 * @author stone
 * @date 2022/03/31 09:43
 */
public interface UserMapper {

    //查询到user的信息，并且也能查询到userDetail的信息
    User selectUserByUsername(@Param("username") String username);

    User[] selectUsersInIdArray(@Param("ids") Integer[] ids);

    UserDetail selectUserDetailByUserId(@Param("id") Integer id);

    //采用连接查询来做
    User[] selectUsersInIdArrayLeftJoin(@Param("ids") Integer[] ids);
}
